/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 13, 2009 12:54:04 AM $
 *
 * Author: Eric Yang
 * Date  : Aug 13, 2009 12:54:04 AM
 *
 */
package com.gooex.web.action.organization.user;

import com.gooex.domain.organization.User;
import com.gooex.service.organization.exception.UserException;
import com.gooex.web.action.BaseProtectedAction;


/**
 * @author Eric Yang
 * @version 1.0
 */
public class RemoveUser extends BaseProtectedAction {

	private User user;

	public String execute() throws Exception {
		try {
			userManager.removeUser(user);
		} catch (UserException e) {
			addActionError(e.getMessage());
			return ERROR;
		}
		return SUCCESS;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
